angular.module('mamApp').factory('reportManager', ['$http', 'api','paramsManager', function ($http, api,paramsManager) {
    var reportManager = {
        /**
         * 获取专辑概况
         * @param params
         * @returns
         */

        albumList: function (params,query) {
            return $http.get(api + '/cp/albumstat/'+paramsManager.params(params)+paramsManager.query(query)).then(function (result) {
                return result;
            });
        },
        /**
         * 获取节目概况
         * @param params
         * @returns
         */

        programList: function (params,query) {
            return $http.get(api + '/cp/programstat/' +paramsManager.params(params)+paramsManager.query(query)).then(function (result) {
                return result;
            });
        },
        /**
         * 播放概况统计
         * @param params query
         * @returns
         */

        playCountStat: function (params, query,cpId) {
            return $http.get(api + '/cp/stat/play/cp/' + paramsManager.params(params) + paramsManager.query(query)+cpId).then(function (result) {
                return result;
            });
        },
     /*   /!**
         * 专辑总量
         * @param
         * @returns
         *!/

        playData: function () {
            return $http.get(api + '/admin/stat/play/playcount/total').then(function (result) {
                return result;
            });
        }
*/

    };

    return reportManager;
}]);
